package bancosys.tec.persist.entities.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

import jmine.tec.persist.annotation.Alias;
import bancosys.tec.persist.bussobj.AuthPersistableBusinessObject;
import bancosys.tec.persist.persister.annotation.NaturalKey;
import bancosys.tec.persist.persister.annotation.Unique;

@Entity
@Alias("NKICBE")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public class NaturalKeyIgnoreCaseBean extends AuthPersistableBusinessObject {

    private Long id;

    private String mnemonico;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Unique
    @NaturalKey(ignoreCase = true)
    public String getMnemonico() {
        return this.mnemonico;
    }

    public void setMnemonico(String mnemonico) {
        this.mnemonico = mnemonico;
    }

}
